<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>文档扫描-病案文档工作站</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="山东省立医院,临床医学数据平台,病案文档工作站">
	<meta http-equiv="description" content="浏览器IE8以上请添加兼容视图，调试了一下午得出的教训谨记！">
	<script type="text/javascript" src="./_/jss/jquery-layout/jquery-layout-latest-1.4.0/jquery-latest.js"></script> 
	<script type="text/javascript" src="./_/jss/jquery-layout/jquery-layout-latest-1.4.0/jquery-ui-latest.js"></script> 
	<script type="text/javascript" src="./_/jss/jquery-layout/jquery-layout-latest-1.4.0/jquery.layout-latest.js"></script>
	<script src="./_/jss/jquery.lazyload.min.js"></script>
	<script src="<%=path%>/_/jss/_/My97DatePicker/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="./_/jss/json2.js"></script>
	<script src="./jsp/workboard/index.js"></script>
	<script src="./jsp/workboard/view-work/index.js"></script>
	<script type="text/javascript" src="<%=path%>/_/jss/dwr/util.js"></script>
	<script type="text/javascript" src="<%=path%>/dwr/engine.js"></script>
	<script type="text/javascript" src="<%=path%>/dwr/interface/BaseBiz.js"></script>
	<script type="text/javascript" src="<%=path%>/dwr/interface/ScanBiz.js"></script>
	<script src="<%=path%>/_/jss/_/jquery.imgareaselect/scripts/jquery.imgareaselect.pack.js"></script>
	<link rel="Stylesheet" href="<%=path%>/_/jss/_/jquery.imgareaselect/css/imgareaselect-default.css"/>
	<link href="./_/jss/jquery-layout/jquery-layout-latest-1.4.0/layout-default-latest.css" rel="stylesheet" type="text/css" />
	<link href="./_/jss/top.css" rel="stylesheet" type="text/css" />
	<link href="./_/jss/index.css" rel="stylesheet" type="text/css" />
	<link href="./_/jss/layout.css" rel="stylesheet" type="text/css" />
	<link href="./_/jss/view-work/index.css" rel="stylesheet" type="text/css" />
    <script for="ScanOcx" event="PostScanEveryPage(bSuccess)" defer="defer">
		try{
			var cookieMD = getFromCookie("MediDocumenter");
			if (!isUse(cookieMD)){
				cookieMD = "Microtek_6240S";
			}
			//Scan[Scan.getFromCookieMD].startScan(bSuccess);
			if(cookieMD == "Microtek_6240S"){
				Microtek_6240S.startScan(bSuccess);
			}else{
				Microtek_6240S.startScan(bSuccess);
			}
		}catch(ex){
			alert("浏览器设置错误！\r\n"+ex.message);
		}
	</script>
	<script>
		var Scan = {
			"CardId":"130521198909060772",
			"OrgCode":"49557184-0",
			"MrId":"6151779",
			"CurrentMrId":"6151779",
			"ItemOneDocID":"6151779",
			"Name":"李玉涛",
			"Mode":(function(){
				var $r = geta1f9o8s5q5t2();
				if (isUse($r) && $r.indexOf(",")<0){//Scan.Mode = $w+","+$h;// 注释：设置变大变小
					return $r;
				}
				return "fullHeight";
			})(),//"fullHeight",
			"imgWidth":"0",
			"imgHeight":"0",
			"WorkType":"work",
			"getTranSparentPng":"<%=path%>/_/img/transparent.png",
			"MrDocViewOrBoardList": new Array(),
			"MrPageTypeList": new Array(),
			"ArmID":"",
			"CurrentDocPageImg":null,
			"PageTypeCode":"",
			"ScrollHeight":"0",
			"param6":{},
			"Microtek_6240S":"",
			"getFromCookieMD":(function(){
				var $r = getFromCookie("MediDocumenter");
				if (isUse($r)){
					return $r;
				}
				return "Microtek_6240S";
			})(),
			"getItemOperaterSelect":function(){
				$("#ItemOperaterSelect").each(
		    		function (){
		    		var $s = "";
		    		if (fun3()){// 230822198709197826 
		    			$s += "<option value=\"all\">全部</option>";
		    			var obj1;
		    			dwr.engine.setAsync(false);
		    			BaseBiz.getAllCzyByOrgCode(Scan.OrgCode, {
							callback:function(arryList){
								obj1 = arryList;
							},
							warningHandler:function(message){ },
							errorHandler:function(message){ }
						})
		    			
						var len = obj1.length;
						for (var i = 0;i< len;i++){
							var cardid = obj1[i].cardid;
							//temp:
							if (Scan.OrgCode == "49557184-0" && obj1[i].jinruqx.indexOf("1") > -1){
								if ("230822198709197826" != cardid){
									continue;
								}
							}
							//
							if (cardid == Scan.CardId){
								$s += "<option selected value=\""+cardid+"\">"+obj1[i].sex+"</option>";
							}else{
								$s += "<option value=\""+cardid+"\">"+obj1[i].sex+"</option>";
							}
						}
		    		}else{
		    			$s += "<option value=\""+Scan.CardId+"\">"+Scan.Name+"</option>";
		    		}
		    		$(this).html($s);
		    	});
		    	////
		    	$("#ItemOperaterSelect").on(
		    		{
		    			"change":function(){
		    				//Scan.param14("current",this.value);
		    			}
		    		}
		    	);
			},
			"getItemCurrentMrs":function(){
				var dateStart = $("#ItemCurrentMrsSelect").val();
				var card = Scan.CardId;//$("#ItemOperaterSelect").val();
				var dateEnd = dateStart;
				var arrayList;
				var TCzy = {cardid:card, yyidentiry:Scan.OrgCode};
				dwr.engine.setAsync(false);
		    	ScanBiz.getScanInfoByDate(TCzy, dateStart, dateEnd, {
					callback:function(data){
						arrayList = data;
					},
					warningHandler:function(message){ return;},
					errorHandler:function(message){ return;}
				})
				if(arrayList == null){
					return;
				}
				//arrayList.reverse();
				var len = arrayList.length;
				var allScanCount = 0;
				var allCatalogCount = 0;
				var $s = "";
				for (var i = 0;i < len;i++){
					var mrId = arrayList[i].biaoshima;
					var scanCount = arrayList[i].scanCount;
					var catalogCount = arrayList[i].catalogueCount;
					var unCatalogCount = arrayList[i].unCatalogueCount;
					allScanCount += scanCount;
					allCatalogCount += catalogCount;
					
					var divClass = "itemOneDocGai";// itemOneDoc 仿itemOnePageType
					if (mrId == Scan.CurrentMrId){
						divClass = "itemOneDocGaiOn";// itemOneDocOn 仿itemOnePageTypeOn
					}
					
					var backgroundColor = "";
					var allCount = parseInt(catalogCount)+parseInt(unCatalogCount);
					if (allCount < 1){
						backgroundColor = "pink";
					}
					else if (unCatalogCount > 0){
						backgroundColor = "#C9E4DE";
					}else{
						backgroundColor = "";
					}
					
					$s += "<div class=\""+divClass+"\"" +
						//" title=\""+arrayList[i]["JSR"]+"\""+
						" __q1t7k3u5u5=\"itemOneDoc\" __j6m5p1d6m1i3I1v2=\""+mrId+"\"" +
						" style=\"background-color:"+backgroundColor+";\">"+
						
						"<div id=\"itemOneDoc"+mrId+"\">"+
							"<span style=\"color:black;\">"+mrId+"</span>"+
							"&nbsp;&nbsp;"+
							//"<span style=\"color:blue;\">"+arrayList[i].userScanName+"</span>"+
							"<img title=\"当日扫描\" src=\"./_/img/scan.png\">&nbsp;<span style=\"color:#616130;\">"+scanCount+"</span>"+
							"&nbsp;&nbsp;<img title=\"当日编制\" src=\"./_/img/bz.png\">&nbsp;<span style=\"color:#616130;\">"+catalogCount+"</span>"+
							"&nbsp;&nbsp;<img title=\"当日未编\" src=\"./_/img/wb.png\">&nbsp;<span style=\"color:#616130;\">"+unCatalogCount+"</span>"+
						"</div>"+
					"</div>";
				}
				$("#ItemCurrentMrs").html($s);
				
				
				$("[__q1t7k3u5u5='itemOneDoc']",ItemCurrentMrs).on(
					{
						"mouseup":function(){
							if (event.button == 2){
								//menus(this).$p4j5x1j5k9g0u5g5(
								//[
								//	{
								//		"__u5t5s5f9k9q1I1k9c9t2p1":"Del",
								//		"__k9h3k9t7t2":"删除该病案文档目录",
								//		"__o5I1n4q1k9h3s5n4":"Scan.deleteWendang();"
								//	}
								//],"__q3p1i0a7t2n4k9");
								
								//if ($p5x1x1s5h3n4k9t2q5o8f9j6q5 != this.getAttribute("__j6m5p1d6m1i3I1v2")){
								//	Scan.$s5x1t2n4f7s5q1r8(this.getAttribute("__j6m5p1d6m1i3I1v2"));
									
								//	$k9s5p4p4t7t2e8t7k3u5u5(this,ItemCurrentMrs);
								//}
								return false;
							}else if (event.button == 0 || event.button == 1){
								if (Scan.CurrentMrId != this.getAttribute("__j6m5p1d6m1i3I1v2")){
									$s5x1t2n4f7s5q1r8(this.getAttribute("__j6m5p1d6m1i3I1v2"));
									$k9s5p4p4t7t2e8t7k3u5u5(this,ItemCurrentMrs);
									Scan.ItemOneDocID = this.getAttribute("__j6m5p1d6m1i3I1v2");
								}
							}
						}
					}
				);
				$("#baCount").text(""+len);
				$("#scanCount").text(""+allScanCount);
				$("#catalogCount").text(""+allCatalogCount);
			},
			"setMrCount":function(){
				dwr.engine.setAsync(false);
		    	ScanBiz.getBaseByIdentity(Scan.OrgCode, Scan.CurrentMrId, {
					callback:function(ba){
						$("#CurrentMrIdBox").text(ba.baidentity);
    					$("#CurrentMrcodeBox").text(ba.banum);
    					$("#CurrentMrNameBox").text(ba.name);
						$("#CurrentMrOutTimeBox").text(ba.cyrq);
						//$("#CurrentTotalPagecount").text();
					},
					warningHandler:function(message){ return;},
					errorHandler:function(message){ return;}
				})
			}		
		}; 
		var outerLayout, middleLayout, innerLayout; 
		$(function () { 
			outerLayout = $('body').layout({ 
				center__paneSelector:	".outer-center" 
			,	west__paneSelector:		".outer-west" 
			,	east__paneSelector:		".outer-east" 
			,	west__size:				216 
			,	east__size:				218 
			,	spacing_open:			8 // ALL panes
			,	spacing_closed:			12 // ALL panes
			,	north__spacing_open:	0
			,   north__size:			40 
			,	south__spacing_open:	0
			,	center__onresize:		"middleLayout.resizeAll" 
			,	stateManagement__enabled:	true
			//	West Sidebar options
			,	west__childOptions:	{
					minSize:				50	// ALL panes
				,	south__size:			130
				}
	
			//	East Sidebar options
			,	east__childOptions:	{
					minSize:				50	// ALL panes
				,	south__size:			80
				}
			}); 
	
			middleLayout = $('div.outer-center').layout({ 
				center__paneSelector:	".middle-center" 
			,	west__paneSelector:		".middle-west" 
			,	east__paneSelector:		".middle-east" 
			,	west__size:				216 
			,	east__size:				216 
			,	spacing_open:			8  // ALL panes
			,	spacing_closed:			12 // ALL panes
			,	center__onresize:		"innerLayout.resizeAll" 
			}); 
	
			innerLayout = $('div.middle-center').layout({ 
				center__paneSelector:	".inner-center" 
			,	west__paneSelector:		".inner-west" 
			,	east__paneSelector:		".inner-east" 
			,	west__size:				75 
			,	east__size:				75 
			,	spacing_open:			8  // ALL panes
			,	spacing_closed:			8  // ALL panes
			,	west__spacing_closed:	12
			,	east__spacing_closed:	12
			}); 
			
			$("#ScanerSelectOr").on(
		    	{
		    		"change":function(){
		    			try{
		    				Scan[Scan.getFromCookieMD].close();
		    			}catch(ex){
		    				//
		    			}
		    			Scan.scanerStart = false;
		    			
		    			var $v = $(this).val();
		    			Scan.getFromCookieMD = $v;
		    			setCookie("MediDocumenter",$v,732);//732:day
		    			
		    			//toScaning();
		    		}
		    	}
		    );
		    $("option",ScanerSelectOr).each(
		    	function(i){
		    		if (this.getAttribute("value") == Scan.getFromCookieMD){
		    			this.selected = "true";
		    			return false;
		    		}
		    	}
		    );
			
			$("#ItemCurrentMrsSelect").val(parseDate(new Date(),"simple"));
			getStdMrPageTypeList();
			
//			Scan.getItemOperaterSelect();
			Scan.getItemCurrentMrs();
			Scan.setMrCount();
			getDocPageSpan_up();
			currentDocMrPageTypeNum();
			workMenu();
			
			$u5t5s5f9k9q1I1k9u5();// 注释：keyCode快捷键
			
			document.oncontextmenu = function(){
				return false;
			};
		}); 
		function showDocPage(mode){
			if(mode != Scan.Mode){
				Scan.Mode = mode;
				getDocPageSpan_up();
				$u5t2k9a1f9o8s5q5t2(mode);
			}
		}
		
		function $s5x1t2n4f7s5q1r8(mrID){
			Scan.CurrentMrId = mrID;
			Scan.setMrCount();
			getDocPageSpan_up();
			currentDocMrPageTypeNum();
			workMenu();
		}
		
		function $s5x1t2n4f7s5q1r8(mrID, lianSao){
			Scan.CurrentMrId = mrID;
			Scan.setMrCount();
			getDocPageSpan_up(lianSao);
			currentDocMrPageTypeNum();
			workMenu();
		}
		
		function getStdMrPageTypeList(){
			var stdMrPageTypeList = Scan.MrPageTypeList;
			if(stdMrPageTypeList.length == 0){
				dwr.engine.setAsync(false);
				ScanBiz.getMarPageType({
					callback:function(data){
						stdMrPageTypeList = data;
						Scan.MrPageTypeList = stdMrPageTypeList;
					},
					warningHandler:function(message){return; },
					errorHandler:function(message){return; }
				})
			}
		}
		
		function $u5t5s5f9k9q1I1k9u5(){
			document.onkeydown = function(){
				var $u5f9q1i0t7t2p8t2n4k9 = event.srcElement;
				if ($u5f9q1i0t7t2p8t2n4k9.tagName.toUpperCase() == "INPUT"){
					return;
				}
				
				event.returnValue = false;
				
				var $p8j5u5g0 = $t2a7t2n4k9q6h3p8t2j6n4k9t2f9a7k3t7();
				var $q3m5x1z8 = event.keyCode;
				var $q3m5u5g5 = String.fromCharCode($q3m5x1z8).toUpperCase();
				
				var menusx0s5q4 = $("[id^='UdMenu_']")[0];
				
				if ($q3m5x1z8 == 18){//Alt
					if ($p8j5u5g0 < 1024){return;}
					scanerSaomiao("appendOne");
				}
				else if ($q3m5x1z8 == 32){//space
					if ($p8j5u5g0 < 1024){return;}
					if(Scan.getFromCookieMD == "Microtek_MEDI-XT3500"){
						scanerSaomiao("appendOne");
					}else{
						scanerSaomiaos("appendOnes");
					}
				}
				else if ($q3m5x1z8 == 46){//del
					$q5t2t7t2k9t2a1n4t2b7k3p4t2();
				}else if ($q3m5x1z8 == 37){//left
					if ($p8j5u5g0 < 256){return;}
				}else if ($q3m5x1z8 == 39){//right
					if ($p8j5u5g0 < 256){return;}
				}else if ($q3m5x1z8 == 38){//top
					if ($p8j5u5g0 < 256){return;}
					$p8s5a7t2p5q1k9h3a7t2(-1);
				}else if ($q3m5x1z8 == 40){//down
					$p8s5a7t2p5q1k9h3a7t2(1);
				}
				
				if ($q3m5u5g5.match(/^\d+/)){//number
	//				$e8k3k9k3t7s5p4t2f9r8j1t5s5f9k9q1I1k9($q3m5u5g5);//注释：查询病案
				}
				
				return false;
			};
		}
		
		var $p1j5p4j5q5k7 = {
			"$d1t2p1q1s5q5t2u5":[0,0,0,0],
			"$I1v2k9z8p8j5k9z8":[],
			"$q3s5s5d1p8k3f9d1":[],
			"$x1s5u5h3k9h3s5n4":-1
		};
		
		function $t2a7t2n4k9q6h3p8t2j6n4k9t2f9a7k3t7(){
			var $k9z8p1d6p1d6 = this.$p1j5p4j5q5k7.$d1t2p1q1s5q5t2u5;
			$k9z8p1d6p1d6[0] = $k9z8p1d6p1d6[2];
			$k9z8p1d6p1d6[1] = $k9z8p1d6p1d6[3];
			$k9z8p1d6p1d6[2] = event.keyCode;
			$k9z8p1d6p1d6[3] = new Date().getTime();
			
			return $k9z8p1d6p1d6[3] - $k9z8p1d6p1d6[1];
		}
		
		function $p8s5a7t2p5q1k9h3a7t2($h3j1k9t2x1){
			var $p4j5p4v2 = this.geta1n4t2p5q1k9h3a7t2o8s5a7t2($h3j1k9t2x1);
			if ($p4j5p4v2 == null){
				return;
			}
			
			Scan.ArmID = $p4j5p4v2.id;
			
			activeDocPageImg($p4j5p4v2.id+"");
		};
		
		function geta1n4t2p5q1k9h3a7t2o8s5a7t2($h3j1k9t2x1){
			var $p4j5j6d6 = getp5q1k9h3a7t2b7k3p4t2a1n4t2();
			var $p4j5p4v2 = null;
			
			var arrayList = Scan.MrDocViewOrBoardList;
			var len = arrayList.length;
			for (var i = 0;i < len;i++){
				if (arrayList[i] == $p4j5j6d6){
					var $u5g0o5m5 = Math.min(i+$h3j1k9t2x1,len-1);
					$u5g0o5m5 = Math.max($u5g0o5m5,0);
					$p4j5p4v2 = arrayList[$u5g0o5m5];
					break;
				}
			}
			
			return $p4j5p4v2;
		};
		
		function getByData(){
			Scan.getItemCurrentMrs();
			Scan.setMrCount();
			getDocPageSpan_up();
			currentDocMrPageTypeNum();
			workMenu();
			
			$u5t5s5f9k9q1I1k9u5();// 注释：keyCode快捷键
		}
	</script> 
  </head>
  
  <body>
 	<div class="ui-layout-north" style="padding: 0px; background-color: #C9E4DE;">
 		<div style="text-align: center;" id="Toolbar">
	    	<table style="width:98%; margin:auto;border-collapse:collapse;" cellSpacing="0" cellPadding="0" border="0" bordercolor="#FFFFFF">
	    		<tr>
		    		<td>
		    		<table width="100%" border="2" bordercolor="#FFFFFF" cellpadding="0" cellspacing="0" style="margin:auto;border-collapse:collapse;">
		    			<tr bordercolor="#FFFFFF">
		    				<td style="color: #ADADAD; padding-top: 2px;" align="center" valign="middle">
		    					<input id="ItemCurrentMrsSelect" size="10" value=""
	    							class="Wdate" onchange="getByData();"
	    							onclick="WdatePicker({minDate:'2013-11-29',maxDate:'%y-%M-%d'});"/>
	    						&nbsp;&nbsp;
	    						病案数: <span id="baCount">0</span>
								扫描页: <span id="scanCount">0</span>
								编制页: <span id="catalogCount">0</span>
		    				</td>
		    				<td align="center" valign="middle">
		    					<select id="ScanerSelectOr" onchange="setCookie();">
			    					<option value="Microtek_MEDI1000">扫描仪-中晶MEDI1000</option>
			    					<option value="Microtek_MEDI1000_NEW">扫描仪-中晶MEDI1000(新)</option>
			    					<option value="Microtek_MEDI-XT3500">扫描仪-中晶MEDI-XT3500</option>
			    					<option value="Microtek_6240S">扫描仪-中晶6240s</option>
			    					<option value="Microtek_6240S_DEEP">扫描仪-中晶6240s(浅)</option>
			    					<option value="Microtek_6240S_NEW">扫描仪-中晶6240s(新)</option>
			    					<option value="Microtek_S8090">扫描仪-中晶S8090</option>
			    					<option value="Microtek_S8090_RGB">扫描仪-中晶S8090(彩)</option>
								</select>
								&nbsp;&nbsp;
			    				<input id="ScanerSettingBtn" type="button" value="设置" onclick="openScanerSettings();" title="尺寸：&#10;正16开信纸(195mm*270mm) SetScanImageLayout(0,0,7.68,10.63) &#10;大16开信纸(210mm*285mm) SetScanImageLayout(0,0,8.27,11.22)"/>
			    				<input type="button" value="快捷键" title="显示扫描仪快捷键" onclick="alert('单面扫描快捷键：ALT！\r\n连续扫描快捷键：空格键！');" />
				      			
				      			<input type="button" value="暂停" onclick="scanerClose();"/>
				    			<input type="button" value="中止" onclick="scanerCancel();"/>
		    				</td>
		    				<td align="center" valign="middle">
		    					<input type="button" value="扫描" title="单面扫描快捷键：ALT！" onclick="scanerSaomiao('appendOne');" style="font-weight:bold;"/>
				    			<input type="button" value="连续扫描" title="连续扫描快捷键：空格键！" onclick="scanerSaomiaos('appendOnes');" style="font-weight:bold;"/>
		    				</td>
		    				<td align="center" valign="middle">
		    					<input type="button" value="插扫" title="单张单面插扫" onclick="scanerSaomiao('insertOne');" />
		    					<input type="button" value="替扫" title="单张单面替扫" onclick="scanerSaomiao('replaceOne');" />
			    				<input type="button" value="连续插扫" onclick="scanerSaomiaos('insertOnes');" />
		    				</td>
		    				<td align="center" valign="middle"">
		    				<div style="padding-top: 6px;">
		    					<img alt="后退" src="./_/img/left.png" onclick="history.go(-1);" style="cursor: hand; filter:fliph;">
		    					&nbsp;
		    					<img alt="前进" src="./_/img/right.png" onclick="history.go(1);" style="cursor: hand; filter:flipv">
		    					&nbsp;
		    					<img alt="刷新" src="./_/img/flush.png" onclick="location.reload();" style="cursor: hand;">
		    					&nbsp;
		    					<img alt="关闭" src="./_/img/close.png" onclick="window.close();" style="cursor: hand;">
		    				</div>
		    					<!-- 
				      			<input type="button" value="&lt;&lt;" onclick="history.go(-1);"/>
				      			&nbsp;
				      			<input type="button" value="&gt;&gt;" onclick="history.go(1);"/>
				      			&nbsp;
				          		<input type="button" value="刷新" onclick="location.reload();"/>
				          		&nbsp;
				          		<input type="button" value="关闭" onclick="window.close();"/>
				          		 -->
				      		</td>
		    			</tr>
		    		</table>
		      		</td>
	      		</tr>
	    	</table>
	    </div>
	</div>
    <div class="outer-center">
		<div class="middle-center">
			<div class="ui-layout-north" style="padding: 0px;">
				<div id="MrDocViewOrToolbar">
					<div id="MrDocViewOrToolbarA">
						<table style="width:98%;" cellSpacing="0" cellPadding="0">
						<tr>
							<td id="MrDocViewOrToolbarMrInfoTd" nowrap="nowrap">
								<span id="MrDocViewOrToolbarMrInfoSpan">
									标识码: <span id="CurrentMrIdBox"></span>&nbsp;&nbsp;
									病案号: <span id="CurrentMrcodeBox"></span>&nbsp;&nbsp;
									姓名: <span id="CurrentMrNameBox"></span>&nbsp;&nbsp;
									出院日期: <span id="CurrentMrOutTimeBox"></span>
								</span>
								&nbsp;&nbsp;
								<span id="DocSearcher"></span>
							</td>
							<td style="text-align:right;" nowrap="nowrap">
								页数: <span id="CurrentTotalPagecount" style="color: #616130; font-size: larger;"></span>&nbsp;&nbsp;&nbsp;&nbsp;
								<button id="DeleteDocBtn" style="color: black;height:25px;" onclick="deleteWendang();">删除</button>
							</td>
						</tr>
						</table>
					</div>
				</div>
				<div id="MrDocViewOrToolbarB">
				<table style="width:98%;" cellSpacing="0" cellPadding="0">
				<tr>
					<td style="text-align:left;" nowrap="nowrap">
						<div>
							<button class="processBtn" __mode="$q3k3f9q1s5q5t2">贴条码</button>
							&nbsp;
							<button class="processBtn" __mode="$t2f9k3u5t2f9" onclick="$t2f9k3u5t2f9();">去污点</button>
							&nbsp;
							<button class="processBtn" __mode="$n4s5q3t7k3q1d1x0s5f9q5t2f9">裁切</button>
							&nbsp;
							<button class="processBtn" __mode="$f9s5k9k3k9t2-Left" onclick="$f9s5k9k3k9t2(-1);">左纠偏</button>
							&nbsp;
							<button class="processBtn" __mode="$f9s5k9k3k9t2-Right" onclick="$f9s5k9k3k9t2(1);">右纠偏</button>
							&nbsp;
							<button class="processBtn" __mode="$o5t7h3x1r8o5t7s5x1" onclick="$o5t7h3x1r8o5t7s5x1('-flop,-flip');">翻转</button>
							&nbsp;
							<button class="processBtn" __mode="$f9t2a1f9h3p4h3n4" onclick="$f9t2a1f9h3p4h3n4();">还原</button>
						</div>
					</td>
					
					<td style="text-align:right;" nowrap="nowrap">
						<div>
							&nbsp;&nbsp;&nbsp;&nbsp;
		    				<span class="toolBtn" __mode="fullWidth" onclick="showDocPage('fullWidth')">充满</span>
		    				&nbsp;
							<span class="toolBtn" __mode="fullHeight" onclick="showDocPage('fullHeight')">全页</span>
							&nbsp;
							<span class="toolBtn" __mode="thumbnail" onclick="showDocPage('thumbnail')">缩略图</span>
							&nbsp;
							<span class="effectBtn" __mode="$f9t2u5h3w0t2-L" onclick="$f9t2u5h3w0h3n4p4('+');" title="放大">+</span>
							&nbsp;
							<span class="effectBtn" __mode="$f9t2u5h3w0t2-S" onclick="$f9t2u5h3w0h3n4p4('-');" title="缩小">-</span>
							&nbsp;
							<span class="toolBtn" onclick="location.reload(true);">刷新</span>
						</div>
					</td>
				</tr>
				</table>
			</div>
			</div> 
			<div class="inner-center" style="background-color:#505050;">
				<div id="MrDocViewOrBoard" style="height: 90%; cursor: default;">
				
				</div>				
			</div> 
		</div> 
	</div> 
	<div class="outer-west" style="padding: 0px;">
		<div class="ui-layout-center" style="background-color: #CCCCCC; padding: 0px;">
			<div id="ItemCurrentMrs">
			
			</div>
		</div>
		<!--
		<div class="ui-layout-south" style="background-color: #C9E4DE;">
			<div id="workAreaBottom">
				<input id="ItemCurrentMrsSelect" size="10" value=""
	    			class="Wdate" onchange="Scan.param14(this.value);"
	    			onfocus="WdatePicker({minDate:'2013-11-29',maxDate:'%y-%M-%d'});" />
	    		<select id="ItemOperaterSelect"></select>
			</div>
			<div id="ItemCurrentMrs">
				<div style="padding:0.5em;color:blue;">
					病案数量: <span style="font-size:18px;" id="baCount">0</span><br/>
					扫描页数: <span style="font-size:18px;" id="scanCount">0</span><br/>
					编制页数: <span style="font-size:18px;" id="catalogCount">0</span>
				</div>
			</div>
		</div>
		-->
	</div> 
	<div class="outer-east" style="padding: 0px;">
		<div class="ui-layout-center" style="padding: 0px;background-color: #CCCCCC;">
			<div id="WorkMenu">
				<div id="WorkMenuBody">
					
				</div>
			</div>
		</div>
		<!--
		<div class="ui-layout-south" style="background-color: #C9E4DE;">
			<select id="WorkMenuSelect"></select>&nbsp;&nbsp;
    		<br/>
    		<div id="ItemDocPagesHelper" style="padding-top: 10px;"></div>
		</div>
		-->
	</div>
	<div id="CurrentObjects">
		<object classid="CLSID:49903B72-9F44-41E1-A79B-B85A8BCEB89A" id="ScanOcx" width="0" height="0"></object>
	</div> 
  </body>
</html>
